#pragma once
#include "fmod/fmod.h"
#include "fmod/fmod_errors.h"    /* optional */
#include <string>

/**
@brief player singleton
Gestion de la lecture des MP3
Gestion de la lecture des Tag des MP3
*/
class Player
{
	///Stream
	FSOUND_STREAM *_pStream;
	///Nombre de Tag MP3
	int _numTag;
	///pointeur pour le singleton
	static Player* _this;
	Player(void);
	~Player(void);
public:
	static Player* getInstance();
	static void init();
	void load(const std::string filename);
	void play();
	void stop();
	void close();

	const int& getNumTagFields();
	std::pair<std::string,std::string> getTag(const int &id);

};
